package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.data.annotation.Transient;

import java.util.Map;

/**
 * 用户基础设置对象 t_user_basic_setting
 * 
 * @author wp
 * @date 2023-08-10
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@ToString
@TableName(value = "t_user_basic_setting", excludeProperty = {"createBy", "updateBy", "remark"})
public class UserBasicSetting extends BaseEntity {

    /** 主键id */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /** 用户id */
    @ApiModelProperty("用户id")
    private Long userId;

    /** 系统标题名称 */
    @ApiModelProperty("系统标题名称")
    private String titleName;

    /** 地图刷新频率 */
    @ApiModelProperty("地图刷新频率")
    private Long mapFlushSequence;

    /** 地图显示类别 */
    @ApiModelProperty("地图显示类别")
    private Long mapViewType;

    /** 地区编号 */
    @ApiModelProperty("地区编号")
    private Integer cityCode;

    @TableField(exist = false)
    @Transient
    private Map<String, Object> cityCodeMap;

    /** 经度 */
    @ApiModelProperty("经度")
    private Double longitude;

    /** 纬度 */
    @ApiModelProperty("纬度")
    private Double latitude;

}
